package com.electronicwallet;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * The Class AccountCashFlow displays to the user his/her cash flow for the
 * month. It shows the income and their spending.
 */
public class AccountCashFlow extends Activity implements OnClickListener {

	/**
	 * Called when the activity is first created. onCreate displays the layout
	 * mintaccountcashflow which shows the cash flow of the user.
	 * 
	 * @param savedInstanceState
	 *            the saved instance state
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mintaccountcashflow);

		View backButton = findViewById(R.id.back);

		backButton.setOnClickListener(this);
	}

	/*
	 * Depending on the button click by the user, that button will execute.
	 * 
	 * @see android.view.View.OnClickListener#onClick(android.view.View)
	 */
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		// Back button, return to the previous screen.
		case R.id.back:
			finish();
			break;
		}
	}
}
